/**
 * @Auto generation code
 * Distributor Controller
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, body, loading
 * addInfo - POST
 */
export const addInfo = async (loading) => {
	return await request.post('/dislogin/addInfo', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * cancaleOrder - GET
 */
export const cancaleOrder = async ({// query params
		id   // id ,必填 
	
}, loading) => {
	return await request.get('/dislogin/cancleOrder', {
		 id, 
	}, loading)
}


/**
 * 
 * path, params, loading
 * getDetails - GET
 */
export const getDetails = async (loading) => {
	return await request.get('/dislogin/details', {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 联盟商密码登录接口 - POST
 */
export const disLoginByPassword = async (loading) => {
	return await request.post('/dislogin/distributor/login', {
		
	}, {
		
	}, loading)
}


 console.log('存在put方法，未兼容/dislogin/distributor/password，后端需要更正');
/**
 * 
 * path, params, body, loading
 * disLogin - POST
 */
export const disLogin = async (loading) => {
	return await request.post('/dislogin/distributor/quick-login', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * getOrderDetatils - GET
 */
export const getOrderDetatils = async ({// query params
		id   // id ,必填 
	
}, loading) => {
	return await request.get('/dislogin/getOrderDetails', {
		 id, 
	}, loading)
}


/**
 * 
 * path, params, loading
 * getOrder - GET
 */
export const getOrder = async ({// query params
		start ,   // start  
		limit   // limit  
	
}, loading) => {
	return await request.get('/dislogin/getOrderList', {
		 start,  limit, 
	}, loading)
}


/**
 * 
 * path, params, loading
 * myPrivilege - GET
 */
export const myPrivilege = async (loading) => {
	return await request.get('/dislogin/getPrivilege', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * getQRcodes - GET
 */
export const getQRcodes = async ({// query params
		openId ,   // openId  
		update   // update  
	
}, loading) => {
	return await request.get('/dislogin/getQRcodes', {
		 openId,  update, 
	}, loading)
}


/**
 * 
 * path, params, loading
 * myself - GET
 */
export const myself = async (loading) => {
	return await request.get('/dislogin/myself', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * getRebeatDeatails - GET
 */
export const getRebeatDeatails = async ({// query params
		start ,   // start  
		limit   // limit  
	
}, loading) => {
	return await request.get('/dislogin/rebeatDeatails', {
		 start,  limit, 
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * updateQR - POST
 */
export const updateQR = async (loading) => {
	return await request.post('/dislogin/updateQR', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * getVerify - GET
 */
export const getVerify = async ({// query params
		mobilePhone ,   // mobilePhone ,必填 
		type   // type  
	
}, loading) => {
	return await request.get('/dislogin/verify/sms', {
		 mobilePhone,  type, 
	}, loading)
}

